package com.ysd.shiro.fegin;

import java.util.Map;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.ysd.common.utils.OrdersVo;
import com.ysd.shiro.feginImpl.OrderFeginClientCallBack;


@FeignClient(name = "shop-service-order", 			//指定需要调用的微服务名称
fallback = OrderFeginClientCallBack.class)	//指定熔断：声明降级方法	
public interface OrderFeginClient {
	//调用的请求路径
	@RequestMapping(value = "/order/showAll",method = RequestMethod.GET)
	public Map<String, Object> showAll(@RequestParam("ordersVo") OrdersVo ordersVo,@RequestParam("page")int page,@RequestParam("limit")int limit);
}
